pkg = @PACKAGE@.dll

EXTRA_DIST = $(pkg_sources) $(pkg_sources_in) key.snk
CLEANFILES = @PACKAGE@.dll
DISTCLEANFILES = AssemblyInfo.cs Makefile.in

ASSEMBLY = $(pkg)
ASSEMBLY_NAME = $(subst .dll,,$(ASSEMBLY))

noinst_SCRIPTS = $(pkg)

pkg_sources_in = AssemblyInfo.cs.in
pkg_generated_sources = $(pkg_sources_in:.in=)
pkg_sources = DeviceInfo.cs  FillAreaStyle.cs  Font.cs  LineStyle.cs  Plot.cs  Units.cs

pkg_build_sources = $(addprefix $(srcdir)/, $(pkg_sources))
pkg_build_sources += $(pkg_generated_sources)

$(pkg): $(pkg_build_sources)
	$(MCS) -target:library -out:$@ $(pkg_build_sources)

install-data-local:
	gacutil -i $(ASSEMBLY) -f -package $(PACKAGE) -root $(DESTDIR)$(libdir)

uninstall-local:
	gacutil -u $(ASSEMBLY_NAME) -package $(PACKAGE) -root $(DESTDIR)$(libdir)
	
